<form id="pagerForm" method="post" action="jms/stock">
	<input type="hidden" name="pageNum" value="${(pager.pageNumber)!}" />
	<input type="hidden" name="numPerPage" value="${(pager.pageSize)!}" />
</form>
<div class="pageHeader">

	<form id="searchForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="jms/stock" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						<label>物资名称：</label>
						<input type="text" size="20" name="stock.name" value="${(name)!}" />
					</td>



					<td>
						<label>订单号：</label>
						<input type="text" size="20" name="stock.oid" value="${(oid)!}" />
					</td>

					<td>
						<div class="button"><div class="buttonContent"><button type="submit">查询</button></div></div>
					</td>
				</tr>


			</table>
		</div>
	</form>
</div>

<div class="pageContent" style="padding:0px">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add"  href="jms/stock/add" rel="jms_stock_add" target="navTab" ><span>订单入库</span></a></li>
		</ul>
	</div>

	<table class="table" layoutH="120">
		<thead>
		<tr>
			<th width="80" align="left"><input type="checkbox" group="ids" class="checkboxCtrl"/>行号</th>
			<th width="150" align="left">流水号</th>
			<th width="150" align="left">物料编号</th>
			<th width="150" align="left">物资名称</th>
			<th width="150" align="left">计量单位</th>
			<th width="150" align="left">规格型号</th>
			<th width="150" align="left">供应商</th>
			<th width="150" align="left">订单号</th>
			<th width="150" align="left">单价</th>
			<th width="150" align="left">数量</th>
			<th width="150" align="left">入库日期</th>
			<th width="150" align="left">备注</th>
		</tr>
		</thead>
		<tbody>
		<#list pager.list as stock>

			<tr target="sid_obj" rel="${(stock.id)!}" ondblclick="migr.baseMoudleDblick(this)">
				<td align="left">
					<input name="ids" type="checkbox" value="${(stock.id)!}"/>
					${stock_index + 1}
				</td>
				<td align="left">${(stock.id)!}</td>
				<td align="left">${(stock.mid)!}</td>
				<td align="left">${(stock.name)!}</td>
				<td align="left">${(stock.unit)!}</td>
				<td align="left">${(stock.model)!}</td>
				<td align="left">${(stock.supplier)!}</td>
				<td align="left">${(stock.oid)!}</td>
				<td align="left">${(stock.price)!}</td>
				<td align="left">${(stock.quantity)!}</td>
				<td align="left">${(stock.createDate?string("yyyy-MM-dd"))!}</td>
				<td align="left">${(stock.memo)!}</td>
			</tr>
		</#list>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" <#if pager.pageSize == 20> selected</#if>>20</option>
				<option value="50" <#if pager.pageSize == 50> selected</#if>>50</option>
				<option value="100"<#if pager.pageSize == 100> selected</#if>>100</option>
				<option value="200"<#if pager.pageSize == 200> selected</#if>>200</option>
			</select>
			<span>条，共<font style="color:red;font-weight:bold;">${pager.totalRow!}</font>条，共<font style="color:red;font-weight:bold;">${pager.totalPage!}</font>页&nbsp;&nbsp;&nbsp;&nbsp;</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="${pager.totalRow!}" numPerPage="${pager.pageSize!}" pageNumShown="10" currentPage="${pager.pageNumber!}"></div>
	</div>
</div>
